//
//  NSData+Extensions.h
//  Whistle
//
//  Created by ZhangAo on 16/1/8.
//  Copyright © 2016年 BookSir. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 图片类型
 */
typedef NS_ENUM(NSInteger, DKImageFormat) {
    DKImageFormatUndefined = -1,
    DKImageFormatJPEG = 0,      
    DKImageFormatPNG,           
    DKImageFormatGIF
};

@interface NSData (Extensions)

- (DKImageFormat)imageFormat;

@end

////////////////////////////////////////////////////////////

@interface NSString (ImageFormat)

+ (NSString *)extensionForImageFormat:(DKImageFormat)imageformat;

@end
